package com.hup.minicontroller.common.util;

import java.io.IOException;
import java.net.InetAddress;
import java.net.MulticastSocket;

/**
 * @author hugan
 * @date 2021/5/11
 */
public abstract class BroadcastUtil {

    public static void leaveGroup(MulticastSocket multicastSocket, InetAddress address) {
        try {
            multicastSocket.leaveGroup(address);
        } catch (IOException ignored) {
        }
    }

}
